package com.example.memoriesfall.ddms_lesson;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.app.Activity;
import android.util.Log;
import android.view.View;
import android.widget.Button;

public class DDMS extends AppCompatActivity {

    private static final String ACTIVITY_TAG="Logdemo";
    private Button b1;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_ddms);

        b1=(Button)findViewById(R.id.b1);
        b1.setOnClickListener(new Button.OnClickListener(){
            @Override
            public void onClick(View v) {
                Log.v(DDMS.ACTIVITY_TAG, "This is Verbose.");
                Log.d(DDMS.ACTIVITY_TAG, "This is Debug.");
                Log.i(DDMS.ACTIVITY_TAG, "This is Information");
                Log.w(DDMS.ACTIVITY_TAG, "This is Warnning.");
                Log.e(DDMS.ACTIVITY_TAG, "This is Error.");
            }
        });


    }
}
